#include <gflags/gflags.h>

#include <iostream>

DEFINE_string(confPath, "../conf/setup.ini", "program configure file.");
DEFINE_int32(port, 9090, "program listen port");
DEFINE_bool(daemon, true, "run daemon mode");

int main(int argc, char **argv) {
  gflags::ParseCommandLineFlags(&argc, &argv, true);

  std::cout << "confPath = " << FLAGS_confPath << std::endl;
  std::cout << "port = " << FLAGS_port << std::endl;

  if (FLAGS_daemon) {
    std::cout << "run background..." << std::endl;
  } else {
    std::cout << "run foreground..." << std::endl;
  }
  std::cout << "good luck and good bye!" << std::endl;
  gflags::ShutDownCommandLineFlags();

  return 0;
}